/**
 * 
 */
package fr.lelouet.ga.examples.travelingSalesman;

import org.testng.Assert;
import org.testng.annotations.Test;

/**
 * a world which shortest hamiltonien travel is 013240
 * 
 * @author le louet
 */
public class WorldWithBestTravel013240 extends WorldMap {

    private static final long serialVersionUID = 1L;

    public WorldWithBestTravel013240() {
	this.loadArray(new Double[][] { { 50.0, 1.0, 50.0, 10.0 },
		{ 50.0, 50.0, 50.0, 1.0 }, { 50.0, 50.0, 50.0, 50.0, 1.0 },
		{ 1.0, 50.0, 1.0, null }, { 1.0, 50.0, 50.0, 50.0, 50.0 } });
    }

    @Test
    public void testLength() {
	final Travel t = new Travel(this);
	t.add(0);
	t.add(1);
	t.add(3);
	t.add(2);
	Assert.assertEquals(t.length(), 3.0f);
    }

}
